home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2007 September
/
PCWSEP07.iso
/
Software
/
Resources
/
Internet
/
BadBlue PE 2.7
/
bb98.exe
/
SOinit.php
< prev
next >
Wrap
PHP Script
|
2002-09-02
|
763b
|
30 lines
<?php if (!defined("SOinit")) { define("SOinit", 1);
include("SOhttp.php");
// Initialize the connection (just needed before calling any other
// of these functions like retrieving Excel data)
// Inputs:
// $sAddr: address of BadBlue server (e.g., "127.0.0.1:8080")
// Outputs:
// $errmsg: empty if no error occurred, otherwise error message
//
function SOInit($sAddr) {
$errmsg = "";
do {
// Just do a search for dummy data... this will kick off the
// one-time load of the indexes.
//
$sURL = "http://".$sAddr."/ext.dll?MfcISAPICommand=LoadPage&page=search.htx&a0=xyzzy&a1=0&a2=1&a3=6";
$errmsg = SOHTTPGet($sURL, &$sPage, "", "");
if (strlen($errmsg)) {
break;
}
} while (0);
return ($errmsg);
}
} ?>